Skip to content

AggregateWitness class

Defined in

Namespace: ReactiveUI.Primitives.Advanced Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Advanced.AggregateWitness<T1, T2, T3> Modifiers: public sealed

Summary

View source

Single-source sink that folds every observed value through an immutable value-type TAggregator and emits the aggregate result once the source completes. The accumulator is advanced functionally through a constrained (devirtualized, allocation-free) call, so each concrete aggregate operator shares this one implementation without a base class or per-value indirection.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class AggregateWitness~T1,T2,T3~
class IObserver~T~ {
    <>
}
IObserver~T~ <|.. AggregateWitness~T1,T2,T3~
class IDisposable {
    <>
}
IDisposable <|.. AggregateWitness~T1,T2,T3~

Implements: IObserver, IDisposable

Constructors

NameSummary
.ctorInitializes a new instance of the [AggregateWitness](# class.

Methods

NameSummary
OnNext
OnError
OnCompleted
SetSubscriptionAssigns the upstream subscription, disposing it if one is already held.
Dispose
Inherited members